package ch.christianschweizer.apps.ereservation.model;

import javax.persistence.Basic;
import javax.persistence.Entity;

@Entity
public class Restaurant extends User {

	public static class RestaurantBuilder extends UserBuilder<Restaurant> {

		private String name;
		private String url;

		public RestaurantBuilder name(String name) {
			this.name = name;
			return this;
		}

		public RestaurantBuilder url(String url) {
			this.url = url;
			return this;
		}

		@Override
		public Restaurant build() {
			return new Restaurant(this);
		}

	}

	@Basic
	private String name;

	@Basic
	private String url;

	protected Restaurant() {
		super();
	}

	private Restaurant(RestaurantBuilder builder) {
		super(builder);
		name = builder.name;
		url = builder.url;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
